package main
import (
	"fmt"
	"time"
)
func hello() {
	fmt.Println("Hello wolrd groutine")
}
func numbers() {
	for i := 1; i <=5; i++ {
		time.Sleep(250 * time.Millisecond)
		fmt.Printf("%d ", i)
	}
}
func alphabets() {
	for i := 'a'; i <= 'e'; i++ {
		time.Sleep(400 * time.Millisecond)
		fmt.Printf("%c ",i)
	}
}
// 21. Go 协程
func main(){
	go hello()	//没有输出内容

	// 启动多个 Go 协程
	go numbers()
	go alphabets()
	time.Sleep(3000 * time.Millisecond)

    fmt.Println("\nmain => function") //只有这个输出

}
